home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / doc / www-talk.archive.Z / www-talk.archive / text0025.txt < prev    next >
Encoding:
Text File  |  1992-11-30  |  1.5 KB  |  26 lines

  1. The model that TCL has it that each tool has an embedded TCL
  2. interpreter, and tools can issue commands to each other in the TCL
  3. language.  TCL is designed to be simple for simple things, and it is
  4. fully programmable.  TCL provides basic language features, and the
  5. application that embeds an interpreter can define new commands, either
  6. as C procedures or as TCL command procedures (scripts).  For example,
  7. the Tk X toolkit defines a number of TCL commands to create widgets, so
  8. it is possible to write window programs with a script.  Since each
  9. window (ideally) has a TCL interpreter behind it, you can control your
  10. tools by sending around TCL commands.  This is a more powerful
  11. alternative to using mail header formats for messages. You can send
  12. whole programs, not just commands.  The way I use this currently is to
  13. couple a control panel with a shell window.  The control panel is put
  14. together as a TCL/Tk script that uses the Tk toolkit to display buttons,
  15. etc.  Clicking on buttons in the control panel can cause messages to be
  16. sent to the terminal emulator (tx).  One very useful command passes a
  17. string along to the shell running in the terminal emulator.  In this way
  18. I can create buttons that run commonly used programs.  Other commands
  19. control the terminal emulator itself, such as its size and placement on
  20. the screen, the message in its status line, etc.  The whole model of a
  21. bunch of tools that have a common language and can fire off commands to
  22. each other is very powerful.
  23.  
  24.     Brent Welch
  25.  
  26.